﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace TPCN.DAL
{
   public class HoaDonNhapObj
    {
        private string _HoadonnhapID;

        public string HoadonnhapID
        {
            get { return _HoadonnhapID; }
            set { _HoadonnhapID = value; }
        }
        private string _Ngaylap;

        public string Ngaylap
        {
            get { return _Ngaylap; }
            set { _Ngaylap = value; }
        }
        private string _Nhanvien;

        public string Nhanvien
        {
            get { return _Nhanvien; }
            set { _Nhanvien = value; }
        }
        public HoaDonNhapObj SetValuesFromDataReader(IDataReader reader)
        {
            HoaDonNhapObj obj = new HoaDonNhapObj();
            obj.HoadonnhapID = (reader["HoadonnhapID"] is DBNull) ? String.Empty : reader["HoadonnhapID"].ToString();
            obj.Ngaylap = (reader["Ngaylap"] is DBNull) ? String.Empty : reader["Ngaylap"].ToString();
            obj.Nhanvien = (reader["Nhanvien"] is DBNull) ? String.Empty : reader["Nhanvien"].ToString();
            return obj;
        }
    }
}
